package com.yzjs.service;

import com.yzjs.service.chainDataInfo.impl.ChainDataInfoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service("selectDataChainMessageTask")
public class SelectDataChainMessageTask {

    @Autowired
    private ChainDataInfoServiceImpl chainDataInfoService;

    @Scheduled(cron = "0 */5 * * * *")
    public void doSelect() {
        chainDataInfoService.getChainMessage();
    }
}
